package com.settlement.system.service;

import com.settlement.system.common.exception.ServiceException;
import com.settlement.system.model.entity.common.TblRrVoucherType;

import java.util.List;

/**
 * 收退款-凭证类型 服务类
 * @author Ximi
 * @since 2020-07-06
 */

public interface ITblRrVoucherTypeService extends IBaseService {

    /**
     * 根据凭证类型获取数据
     *
     * @param voucherType
     * @return
     * @throws ServiceException
     */
    TblRrVoucherType getByVoucherType(String voucherType) throws ServiceException;

    /**
     * 根据 排序 获取数据
     * @param sort
     * @return
     * @throws ServiceException
     */
    TblRrVoucherType getBySort(String sort) throws ServiceException;

    TblRrVoucherType getByVoucherTypeAndNotShareOrNot(String voucherType, String shareOrNot) throws ServiceException;

    TblRrVoucherType getByVoucherTypeAndNotBeforeOrAfterTicket(String voucherType, String beforeOrAfterTicket) throws ServiceException;

    /**
     * 用于全参数判断
     * @param tblRrVoucherType
     * @return
     * @throws ServiceException
     */
    List<TblRrVoucherType> selectByParams(TblRrVoucherType tblRrVoucherType) throws ServiceException;

    String getShareOrNot(String voucherType) throws ServiceException;

    String getBeforeOrAfterTicket(String voucherType) throws ServiceException;
}

